home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Views / NumeralView.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  374 b   |  26 lines  |  [TEXT/CWIE]

  1. // NumeralView.h
  2.  
  3. #ifndef NumeralView_h
  4. #define NumeralView_h
  5.  
  6. #ifndef StringView_h
  7. #include "StringView.h"
  8. #endif
  9.  
  10. class NumeralView: public StringView
  11.   {
  12.     private:
  13.         uint32 digits;
  14.         
  15.     public:
  16.         NumeralView( ::Face );
  17.                 
  18.         void SetNumber( int32 );
  19.         void SetDigits( uint32 d )        { digits = d; }
  20.         
  21.         uint16 MinimumWidth() const;
  22.         uint16 BestWidth() const;
  23.   };
  24.  
  25. #endif
  26.